//
//  SCApiTool+user.h
//  ScalperMerchant
//
//  Created by 王云 on 2017/10/9.
//  Copyright © 2017年 WY. All rights reserved.
//

#import "SCApiTool.h"

@interface SCApiTool (user)

#pragma mark 注册
+ (void)ScRegMember_mobile:(NSString *)member_mobile
             member_passwd:(NSString *)member_passwd
                      code:(NSString *)code
                   success:(void(^)(NSDictionary *dic))success
                   failure:(void (^)(NSString *errormsg))fail;

#pragma mark 登录
+ (void)ScLoginMember_mobile:(NSString *)member_mobile
             member_passwd:(NSString *)member_passwd
                     unionid:(NSString *)unionid
                  headimgurl:(NSString *)headimgurl
                    nickname:(NSString *)nickname
                         sex:(NSString *)sex
                   success:(void(^)(NSString *msg))success
                   failure:(void (^)(NSString *errormsg))fail;

#pragma mark 入驻
+ (void)ScJoininStore_name:(NSString *)store_name
               store_phone:(NSString *)store_phone
             store_address:(NSString *)store_address
              coordinate_x:(NSString *)coordinate_x
              coordinate_y:(NSString *)coordinate_y
business_licence_number_elc:(NSString *)business_licence_number_elc
business_licence_id_number_positive:(NSString *)business_licence_id_number_positive
business_licence_id_number_negative:(NSString *)business_licence_id_number_negative
               store_label:(NSString *)store_label
                     bd_id:(NSString *)bd_id
             contacts_name:(NSString *)contacts_name
            contacts_phone:(NSString *)contacts_phone
                     token:(NSString *)token
                     success:(void(^)(NSString *msg))success
                     failure:(void (^)(NSString *errormsg))fail;

#pragma mark 已入驻店铺概要信息
+ (void)ScStoredetailSuccess:(void(^)(NSDictionary *data))success
                     failure:(void (^)(NSString *errormsg))fail;

#pragma mark 我的账单
+ (void)ScWriteofflistStartTime:(NSString *)startTime
                        endTime:(NSString *)endTime
                        curPage:(NSInteger )curPage
                       pageSize:(NSInteger )pageSize
                        Success:(void(^)(NSDictionary *data))success
                      failure:(void (^)(NSString *errormsg))fail;

#pragma mark 生成二维码链接
+ (void)ScGenerateSuccess:(void(^)(NSDictionary *dic))success
                  failure:(void (^)(NSString *errormsg))fail;

#pragma mark 劵码核销
+ (void)ScWriteoffOrdercode:(NSArray *)ordercode
                    success:(void(^)(NSDictionary *dic))success
                    failure:(void (^)(NSString *errormsg))fail;

#pragma mark 扫描二维码核销
+ (void)ScScanUrl:(NSString *)url
          success:(void(^)(NSDictionary *dic))success
              failure:(void (^)(NSString *errormsg))fail;



#pragma mark 扫码  授权码
+ (void)ScSscanauthcode:(NSString *)url
          success:(void(^)(NSString *msg))success
          failure:(void (^)(NSString *errormsg))fail;



#pragma mark 我的店员
+ (void)ScMemberlistSuccess:(void(^)(NSArray *data))success
                    failure:(void (^)(NSString *errormsg))fail;

#pragma mark 新增店员
+ (void)ScMemberjoinMember_id:(NSString *)Member_id
                      success:(void(^)(NSString *msg))success
                      failure:(void (^)(NSString *errormsg))fail;

#pragma mark 删除店员
+ (void)ScMemberdestoryMember_id:(NSString *)member_id
                         success:(void(^)(NSString *msg))success
                         failure:(void (^)(NSString *errormsg))fail;
#pragma mark 扫码-授权码
+ (void)ScScanauthcodeStoreId:(NSString *)storeId
                      success:(void(^)(NSString *msg))success
                      failure:(void (^)(NSString *errormsg))fail;

#pragma mark 使用授权码新增店员
+ (void)ScauthcodetomemberAuth_code:(NSString *)auth_code
                            success:(void(^)(NSString *msg))success
                            failure:(void (^)(NSString *errormsg))fail;

#pragma mark 忘记密码
+ (void)ScForgotpasswordPhone:(NSString *)phone
                         code:(NSString *)code
                     password:(NSString *)password
                      success:(void(^)(NSString *msg))success
                      failure:(void (^)(NSString *errormsg))fail;

#pragma mark 绑定手机
+ (void)ScRevisemobilePhone:(NSString *)phone
                       code:(NSString *)code
                    success:(void(^)(NSString *msg))success
                    failure:(void (^)(NSString *errormsg))fail;



#pragma mark 可结算单明细
+ (void)ScEnableCurPage:(NSInteger )curPage
               pageSize:(NSInteger )pageSize
                success:(void(^)(NSDictionary *dic))success
                failure:(void (^)(NSString *errormsg))fail;

#pragma mark 历史结算单
+ (void)ScBillStartTime:(NSString *)startTime
                endTime:(NSString *)endTime
                CurPage:(NSInteger )curPage
               pageSize:(NSInteger )pageSize
                success:(void(^)(NSDictionary *dic))success
                failure:(void (^)(NSString *errormsg))fail;

#pragma mark 申请结算
+ (void)ScApplySuccess:(void(^)(NSString *msg))success
               failure:(void (^)(NSString *errormsg))fail;

#pragma mark 结算单明细
+ (void)Scdetailbill_id:(NSString *)bill_id
                   Page:(NSInteger )curPage
               pageSize:(NSInteger )pageSize
                success:(void(^)(NSDictionary *dic))success
                failure:(void (^)(NSString *errormsg))fail;

@end
